import scrapy
from myScrapy.items import TestItem

class TestSpider(scrapy.Spider):
    name = "weibo"
    allowed_domains = ["weibo.com"]
    start_urls = [
        "https://weibo.com/1752502537/JdrjowXYc?filter=hot&root_comment_id=0&type=comment#_rnd1596881285246",
    ]

    def parse(self, response):
        for sel in response.xpath('//div[@class="comment-item"]'):
            people_url = sel.xpath('ldiv[@class="avatar"]/a/@href').extract()
            
            print(response.body)

            pass